package com.gt.web.srv.mapstructs;

import com.gt.web.srv.domain.RepairApplication;
import com.gt.web.srv.domain.RepairApplicationImages;
import com.gt.web.srv.web.api.command.RepairApplicationCommand;
import com.gt.web.srv.web.api.resource.ss.RepairApplicationResource;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author jh
 * @Date 2024/5/18 16:01
 * @PackageName:com.gt.web.srv.converter
 * @ClassName: AdvertisementConverter
 * @Description: TODO
 */
@Mapper
public interface RepairApplicationStruct {

    RepairApplicationStruct INSTANCE = Mappers.getMapper(RepairApplicationStruct.class);


    RepairApplication simple(RepairApplicationCommand goods);

    List<RepairApplicationResource> simpleList(List<RepairApplication> repairApplications);

    List<RepairApplicationResource.RepairApplicationImageDto> simpleImages(List<RepairApplicationImages> repairApplicationImages);

    RepairApplicationResource simple(RepairApplication repairApplication);
}
